<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="css/base.css" />
<link rel="stylesheet" href="css/info-reg.css" />
    <link rel="stylesheet" type="text/css" href="css/jquery.dialog.css" />
    <link rel="stylesheet" href="css/index.css" />
    <link rel="stylesheet" href="css/info-mgt.css" />
    <link rel="stylesheet" href="css/WdatePicker.css" />
<title>毕业生简历管理系统</title>
<style type="text/css">
	.error{
		color:Red;
		font-size:13px;
		margin-left:5px;
		padding-left:16px; 
	}
    #hd .hd-wrap{
        background: cadetblue !important;
    }
</style>
</head>
<body>
<div id="container">
    <div id="hd">
        <div class="hd-wrap ue-clear">
            <div class="top-light"></div>
            <h1>毕业生简历后台系统</h1>
            <div class="login-info ue-clear">
                <div class="welcome ue-clear"><span>欢迎您,</span><a href="candidateManage" class="user-name">${sessionScope.admin.account}</a></div>
            </div>
            <div class="toolbar ue-clear">
                <a href="candidateExit" class="quit-btn exit"></a>
            </div>
        </div>
    </div>
    <div id="bd">
        <div class="wrap ue-clear">
            <div class="sidebar">
                <h2 class="sidebar-header"><p>功能导航</p></h2>
                <ul class="nav">
                    <li class="manage_c"><div class="nav-header" onclick="candidateSkip1()"><a class="ue-clear"><span>毕业生管理</span></a></div></li>
                    <li class="manage_e"><div class="nav-header" onclick="candidateSkip2()"><a class="ue-clear"><span>用人单位管理</span></a></div></li>
                    <li class="modify_a"><div class="nav-header" onclick="candidateSkip3()"><a class="ue-clear"><span>个人信息修改</span></a></div></li>
                </ul>
            </div>
            <div class="content">
                <div class="title">
                    <h2 >个人信息修改</h2>
                </div>
                <form id="fm" method="post" action="adminUpdate">
                    <div class="main">
                        <input name="a_id" value="${admin.a_id}" hidden>
                        <p class="short-input ue-clear">
                            <label>账户：</label>
                            <input name="account" type="text" value="${admin.account }"/>
                        </p>
                        <p class="short-input ue-clear">
                            <label>密码：</label>
                            <input name="password" type="text" value="${admin.password }"/>
                        </p>
                        <div class="btn ue-clear">
                            <input style="height:50px;width:150px;background-color:#8eb2d2;color:white;border-radius:10px" type="submit" value="修改"/>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/WdatePicker.js"></script>
<script type="text/javascript" src="js/jquery.validate.min.js"></script>
<script type="text/javascript" src="js/core.js"></script>
<script type="text/javascript" src="js/jquery.dialog.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script>
    function candidateSkip1(){  location.href="candidateManage"}
    function candidateSkip2(){  location.href="employerManage"}
    function candidateSkip3(){ const a_id="${sessionScope.admin.a_id}"; location.href="adminUpdate?a_id="+a_id}

    const  msg="${modifyMessage}";
    if(msg){
        alert(msg);
    }
</script>
<%--<script type="text/javascript">--%>
<%--<!--动态添加select-->--%>
<%--	$(function(){		--%>
<%--		var $sex = $("<select name='sex' style='width:200px;height:30px;border:1px solid #C5D6E0'></select>");--%>
<%--		var $trade = $("<select name='trade' style='width:200px;height:30px;border:1px solid #C5D6E0'></select>");--%>
<%--		var $salary = $("<select name='salary' style='width:200px;height:30px;border:1px solid #C5D6E0'></select>");--%>
<%--        $("#xingbie").append($sex);--%>
<%--        $("#zhuanye").append($trade);--%>
<%--        $("#xinzi").append($salary);--%>
<%--        var a = new Array();--%>
<%--        var b = new Array();--%>
<%--        var c = new Array();--%>
<%--        var temp;--%>
<%--        a[0] = "软件工程";--%>
<%--        a[1] = "经济管理";--%>
<%--        a[2] = "数学";--%>
<%--        a[3] = "土木工程";--%>
<%--        a[4] = "法学";--%>
<%--        --%>
<%--        b[0] = "男";--%>
<%--        b[1] = "女";--%>
<%--      --%>
<%--        c[0] = "3000-4000";--%>
<%--        c[1] = "4001-5000";--%>
<%--        c[2] = "5001-6000";--%>
<%--        c[3] = "6001-7000";--%>
<%--        c[4] = "7001-8000";--%>
<%--        var p_sex = "${person.sex}";--%>
<%--        var p_trade = "${person.trade}";--%>
<%--        var p_salary = "${person.salary}";--%>
<%--        //将当前项放到首位--%>
<%--        $.each(b,function(index,value){--%>
<%--            if(p_sex===value){--%>
<%--            	temp = b[0];--%>
<%--            	b[0] = b[index];--%>
<%--            	b[index]= temp;--%>
<%--            }--%>
<%--       });--%>
<%--        $.each(a,function(index,value){--%>
<%--            if(p_trade===value){--%>
<%--            	temp = a[0];--%>
<%--            	a[0] = a[index];--%>
<%--            	a[index]= temp;--%>
<%--            }--%>
<%--       });--%>
<%--        $.each(c,function(index,value){--%>
<%--            if(p_salary===value){--%>
<%--            	temp = c[0];--%>
<%--            	c[0] = c[index];--%>
<%--            	c[index]= temp;--%>
<%--            }--%>
<%--       });--%>
<%--        // 添加选项--%>
<%--        $.each(a,function(index,value){--%>
<%--            	$("<option></option>").val(value).text(value).appendTo($($trade));--%>
<%--       });--%>
<%--        $.each(b,function(index,value){--%>
<%--        	$("<option></option>").val(value).text(value).appendTo($($sex));--%>
<%--  		});--%>
<%--        $.each(c,function(index,value){--%>
<%--        	$("<option></option>").val(value).text(value).appendTo($($salary));--%>
<%--  		});--%>
<%--	});--%>
<%--	--%>
<%--	showRemind('input[type=text], textarea','placeholder');--%>
<%--	$( "#fm" ).validate({--%>
<%--	      rules: {--%>
<%--	          name: {--%>
<%--		         required:true--%>
<%--		      },--%>
<%--	          birthday: {--%>
<%--		         required:true--%>
<%--	          },--%>
<%--	          school: {--%>
<%--	        	  required:true --%>
<%--	          },--%>
<%--	          phone: {--%>
<%--	        	  required:true  --%>
<%--		      }--%>
<%--	      },--%>
<%--	      messages: {--%>
<%--	          name: {--%>
<%--	              required: "*不能为空！"--%>
<%--		      },		      --%>
<%--		      birthday: {--%>
<%--	              required: "*不能为空！"--%>
<%--		      },--%>
<%--		      school: {--%>
<%--	              required: "*不能为空！"--%>
<%--		      },--%>
<%--		      phone: {--%>
<%--		          required: "*不能为空！"--%>
<%--			  }--%>
<%--	      }--%>
<%--	  });--%>
<%--</script>--%>

</html>
